<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <h3>{$Think.lang.group.manage_groups}</h3>
    <table class="tb tb2 fixpadding">
        <tr><th class="partition" colspan="15">{$Think.lang.group.user_defined_group}</th></tr>
        <tr><td colspan="15">{$Think.lang.group.user_defined_group_explain}</td></tr>
        <tr>
            <th>{$Think.lang.group.group_name}</th>
            <th>{$Think.lang.group.group_type}</th>
            <th>{$Think.lang.group.group_point_range}</th>
            <th>{$Think.lang.group.group_member_count}</th>
            <th></th>
            <th></th>
        </tr>
        <volist name="memberGroupList" id="vo">
        <tr>
            <td>{$vo.name}</td>
            <td>{$vo.type}</td>
            <td>{$vo.point_lower} - {$vo.point_higher}</td>
            <td><a href="__APP__/Admin/User/userList/user_group/{$vo.group_id}">{$vo.group_id|get_group_user_count}</a></td>
            <td><a class="act" href="__URL__/editUserGroup/group_id/{$vo.group_id}">{$Think.lang.group.user_permissions}</a></td>
            <td><a class="act" href="__URL__/deleteUserGroup/group_id/{$vo.group_id}" onclick="return confirmDelete({$vo.group_id});">{$Think.lang.delete}</a></td>
        </tr>
        </volist>
        <form name="cpformadd" action="__URL__/addUserGroup" method="post">
        <input type="hidden" name="op" value="save" />
        <tr><td colspan="15"><strong>{$Think.lang.group.create_group}:</strong>&nbsp;&nbsp;<input type="text" class="txt" name="group_name" value="" /> &nbsp;<input type="submit" name="addsubmit" class="btn" value="{$Think.lang.submit}" /></td></tr>
        </form>
    </table>
    <table class="tb tb2 fixpadding">
        <tr><th class="partition" colspan="15">{$Think.lang.group.pre_defined_group}</th></tr>
        <tr><td colspan="15">{$Think.lang.group.pre_defined_group_explain}</td></tr>
        <tr>
            <th>{$Think.lang.group.group_name}</th>
            <th>{$Think.lang.group.group_type}</th>
            <th>{$Think.lang.group.group_member_count}</th>
            <th></th>
            <th></th>
        </tr>
        <volist name="systemGroupList" id="vo">
        <tr>
            <td><in name="vo.group_id" value="1,2,3"><strong>{$vo.name}</strong><else/>{$vo.name}</in></td>
            <td>{$vo.type}</td>
            <td><a href="__APP__/Admin/User/userList/user_group/{$vo.group_id}">{$vo.group_id|get_group_user_count}</a></td>
            <td><a class="act" href="__URL__/editUserGroup/group_id/{$vo.group_id}">{$Think.lang.group.user_permissions}</a></td>
            <td><in name="vo.group_id" value="1,2,3"><a class="act" href="__URL__/editAdminGroup/group_id/{$vo.group_id}">{$Think.lang.group.moderator_permissions}</a></in></td>
        </tr>
        </volist>
    </table>
    </form>
</div>

<include file="Public:footer" />
